package com.zbkj.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.client.message.Dialog;
import com.zbkj.common.response.client.DialogListResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DialogMapper extends BaseMapper<Dialog> {
    
    /**
     * 获取会话列表，带头像
     * @param userId 用户ID
     * @return 会话列表
     */
    List<DialogListResponse> selectDialogListWithHeadImg(@Param("userId") Integer userId);
}